package com.example.buildtable.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class OperLog {
    @TableId(type = IdType.AUTO)
    private Integer operId;
    private Integer businessType;
    @TableField(value = "oper_user_id", target = User.class)
    private Integer operUserId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private User user;
    @TableField(value = "oper_role_id", target = Role.class)
    private Integer operRoleId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private Role role;
    private String operEvent;
    private Integer status;
    private String ipAddress;
    private String deviceType;
    private String location;
    private Integer affectedRecordId;
    private String affectedTable;
    private Date operDate;
    private String remark;
}
